package com.chalk.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.chalk.model.VenueComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author glq
 * @since 2020-12-16
 */
@Mapper
@Repository
public interface VenueCommentDao extends BaseMapper<VenueComment> {
    /**
     * 场馆评论分页
     * @param page
     * @param map
     * @return
     */
    List<VenueComment> getVenueCommentForPage(Page<VenueComment> page, @Param("param") Map<String, Object> map);

    int deleteVenueCommentByVenueId(@Param("venueId") Integer venueId);
}
